<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.zsgeek.util.StringHelper"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>自动防跟卖</title>
<link type="text/css" rel="stylesheet" href="<%=path %>/star/css/application.css" />
<link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css" />
<style>
.select {
	width: 40px;
	border: solid 1px #a7b5bc;
}
</style>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">自动防跟卖</a></li>
		</ul>
	</div>
	<div class="formbody">
		<form action="<%=path%>/task.do?m=add" method="post">
			<input type="hidden" name="id" value="${info.id }" /> <input
				type="hidden" name="orderNo" value="${info.orderNo }" /> <input
				type="hidden" name="type" value="${param.type }" />
			<div id="usual1" class="usual">
				<!-- <ul class="toolbar1">
					<li style="border: none; background: none;">
						<input name="" type="submit" class="btn" value="确认保存" />&nbsp;&nbsp;
						<input name="" type="button" class="btn" value="在线支付" onclick="location.href='pay.jsp'" />
					</li>
				</ul> -->
				<!--<div class="itab">
					<ul>
						<li><a href="#tab1" class="selected">任务信息</a></li>
						<li><a href="#tab2">任务信息</a></li>
					</ul>
				</div> -->
				<div class="formtitle">
					<span>基本信息</span>
				</div>

				<div id="tab1" class="tabson">
					<table style="margin-bottom: 20px; width: 100%;">
						<tr style="height: 50px;">
							<td align="right">站点<b>*</b></td>
							<td colspan="7">&nbsp;&nbsp;<input type="radio" name="rdoc" />美国
								&nbsp;&nbsp;<input type="radio" name="rdoc" />德国 <input
								type="radio" name="rdoc" />英国[填写ASIN码的时候，提示选择站点；]
							</td>
						</tr>
						<tr style="height: 50px;">
							<td align="right"><label>ASIN<b>*</b></label>&nbsp;&nbsp;</td>
							<td  colspan="4" ><input placeholder="请输入产品ASIN"
								name="asin" value="${info.asin }" type="text" class="dfinput"
								required="required"  /></td>
						</tr>
						<tr style="height: 50px;">
							<td align="right"><label>自己卖家ID<b>*</b></label>&nbsp;&nbsp;</td>
							<td colspan="3"><input name="pro_key"
								placeholder="请输入主推关键词(多个以空格隔开)" value="${info.pro_key }"
								required="required"  type="text"
								class="dfinput" />
							</td>
							<td align="right"><label>授权跟卖卖家ID<b>*</b></label>&nbsp;</td>
							<td colspan="3"><input name="pro_url"
								value="${info.pro_url }" type="text" required="required"
								class="dfinput" /></td>
						</tr>
					</table>
				</div>
				<div style="float: right; margin-bottom: 10px;">
					<input name="" type="submit" class="btn" value="保存" /> <input
						name="" type="button" class="btn" value="现在支付" />
				</div>
			</div>
		</form>
		<div class="formtitle" style="margin-top: 50px;">
			<span>常见问题</span>
		</div>
		<div>
			<ol>
				<li>Q:为什么要提供小号才能代购？</li>
				<li>A:万一亚马逊开始严查代购的，受惩罚的肯定是小号，你的主账号不会有任何风险。</li>
			</ol>
		</div>

	</div>
	<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="star/lib/jquery.raty.min.js"></script>
	<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

	<script type="text/javascript"
		src="js/data.js?v=<%=StringHelper.getCurrentTimeStamp()%>"></script>
	<script type="text/javascript"
		src="js/date.js?v=<%=StringHelper.getCurrentTimeStamp()%>"></script>
	<script type="text/javascript">
	var d = new Date();
		//$("#usual1 ul").idTabs();
		//$('.tablelist tbody tr:odd').addClass('odd');
		  $(function() {
		    $.fn.raty.defaults.path = '<%=path%>/star/lib/img';

			/*根据地址栏传过来的type的值来判断，是【修改：0】还是【查看：1】操作;
				若为【查看】，隐藏提交保存按钮 ---start---*/
			var type = $("input[name='type']");
			if (type.val() == 1) {
				$(".btn").hide();
			} else {
				$(".btn").show();
			}
			/*--end--*/

			$('.star').raty({
				score : 5
			});

			$(".review_num").click(function() {
				$(".tip").show();
			});

			$(".cancel").click(function() {
				$(".tip").hide();
			});

			$(".feedback_num").click(function() {
				$(".tips").show();
			});
			$(".cancels").click(function() {
				$(".tips").hide();
			});

			var orderNo = '${param.orderNo}';
			if (orderNo == "") {
				// 表示新增
				$("#flow").attr("checked", "checked");
				$("#wish").attr("checked", "checked");
				$("#cart").attr("checked", "checked");

				$("input[name='crate']").val(10);
				$("input[name='wishRate']").val(5);
				$("input[name='cartRate']").val(5);
			} else {

				// 合计：
				sun(flow_url_one_day, order_url_one_day, order_ad_one_day,
						order_result_one_day, flow_result_one_day,
						wish_url_one_day, wish_result_one_day,
						cart_url_one_day, cart_result_one_day);

			}

		});
	</script>

</body>
</html>